package com.ruoyi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员结算收益对象 adv_income
 *
 * @author ruoyi
 * @date 2024-05-13
 */
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Data
public class AdvIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Long advIncomeId;
    @Excel(name = "结算日期")
    private String calDate;
    @Excel(name = "结算类型")
    private String calMode;
    @Excel(name = "佣金比例")
    private Long taxRate;
    @Excel(name = "本人佣金")
    private String totalAmount;
    @Excel(name = "下级下级佣金")
    private String totalAmountSub;
    @Excel(name = "支付总金额")
    private Double payAmount;
    @Excel(name = "审核状态(0 未审核, 1 审核通过, 2 审核失败)")
    private String isAudit; // 0 未审核 1 审核通过 2 审核失败
    @Excel(name = "结算会员id")
    private String advMembersId;
    @Excel(name = "结算年份")
    private String calYear;
    @Excel(name = "结算月份")
    private String calMonth;
    @Excel(name = "是否分账完成(1是，0否)")
    private String isSendcash;
    @Excel(name = "分账日期")
    private String senccashDate;

    @Excel(name = "会员名称", readConverterExp = "$column.readConverterExp()")
    private String memberName;

    public AdvIncome(Long advIncomeId, String calDate, String calMode, Long taxRate, String totalAmount, String totalAmountSub, Double payAmount, String isAudit, String advMembersId, String calYear, String calMonth, String isSendcash, String senccashDate) {
        this.advIncomeId = advIncomeId;
        this.calDate = calDate;
        this.calMode = calMode;
        this.taxRate = taxRate;
        this.totalAmount = totalAmount;
        this.totalAmountSub = totalAmountSub;
        this.payAmount = payAmount;
        this.isAudit = isAudit;
        this.advMembersId = advMembersId;
        this.calYear = calYear;
        this.calMonth = calMonth;
        this.isSendcash = isSendcash;
        this.senccashDate = senccashDate;
    }
}
